<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.core.locale.PlatformLocalesJSTL"%>
<%@page import="java.util.Locale"%>
<%@page import="avicit.platform6.api.session.SessionHelper"%>
<%@page import="java.util.Iterator"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="avicit.platform6.commons.utils.ViewUtil"%>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>权限复制</title>
<base href="<%=ViewUtil.getRequestPath(request)%>">
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess"%>
<% 
Object lang=session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
String languageCode="zh_CN";
if(lang!=null){
	languageCode=lang.toString();
}
	Locale locale =SessionHelper.getLocaleByUser(request);
%>
<link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
<jsp:include page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
<script type="text/javascript" src="avicit/im/lantop/userauthset/CopyQualification.js"></script>
<jsp:include page="/avicit/platform6/modules/system/commonpopup/commonSelectionHead.jsp"></jsp:include>
<jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
<script type="text/javascript" src="avicit/im/lantop/userauthset/locale/language_<%=languageCode%>.js"></script>
<script type="text/javascript">
	targetType = "${targetType}";
	targetId = "${targetId}";
	copyNodeId = "${copyNodeId}";
	dialogId = "${dialogId}";
</script>
<style>
.tree-folder{
 margin-top:0px !important;
}
</style>
</head>
<body class="easyui-layout">
	<div data-options="region:'center',split:false" style="width:360px;">
		<div id="toolbarTargetModel" class="datagrid-toolbar" style="height: 40px; display: block;" >
			<sec:accesscontrollist  hasPermission="3" domainObject ="userauthset_CopyQualification_button_saveCopyToTargetModel">
				<%-- 复制 --%>
				<td width="70px;"><a  style="margin-top:7px;margin-left:20px;" title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.conditionCopy.copy","i18n.lantop",locale)%>" class="easyui-linkbutton  selbtnc" iconCls="icon-im-copy"  onclick="saveCopyToTargetModel();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.conditionCopy.copy","i18n.lantop",locale)%></a></td>
			</sec:accesscontrollist>
			<sec:accesscontrollist  hasPermission="3" domainObject ="userauthset_CopyQualification_button_closeWindow">
				<%-- 返回 --%>
				<td width="70px;"><a title="<%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.conditionCopy.return","i18n.lantop",locale)%>" class="easyui-linkbutton selbtnc" iconCls="icon-im-back"  onclick="closeWindow();" href="javascript:void(0);"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.conditionCopy.return","i18n.lantop",locale)%></a></td>
			</sec:accesscontrollist>
		</div>

		<table id="targetModelTreegrid" class="easyui-treegrid"
			data-options="
							url: 'platform/UserAuthSetController/getArchiveClass?targetType=${targetType }&targetId=${targetId }',
							rownumbers: false,
							animate: true,
							collapsible: false,
							fit:true,
							fitColumns: true,
							autoRowHeight: false,
							method: 'get',
							idField: 'ID',
							treeField: 'ARCHIVE_CLASS_NODE_NAME',
							singleSelect: false,
							toolbar:'#toolbarTargetModel',
							selectOnCheck: false,
							checkOnSelect: false
						">
			<thead>
				<tr>
					<sec:accesscontrollist hasPermission="3" domainObject="userauthset_CopyQualification_targetModelTreegrid_id">
						<th data-options="field:'ID', halign:'center',checkbox:true"
							title="主键ID" width="20">主键ID</th>
					</sec:accesscontrollist>
					<sec:accesscontrollist hasPermission="3" domainObject="userauthset_CopyQualification_targetModelTreegrid_archiveClassNodeName">
						<%-- 节点名称 --%>
						<th
							data-options="field:'ARCHIVE_CLASS_NODE_NAME', halign:'center', align:'left', sortable:false,editor:{type:'text'}"
							width="300" title="节点名称"><%=PlatformLocalesJSTL.getBundleValue("lantop.basicdatamanager.userauthset.userauthset.button.conditionCopy.table.nodeName","i18n.lantop",locale)%></th>
					</sec:accesscontrollist>
				</tr>
			</thead>
		</table>
	</div>
	<script type="text/javascript" src="static/js/platform/index/js/divscroll.js" ></script>
<script>
	$(function(){
		$(".datagrid-view2").find(".datagrid-body").perfectScrollbar();
	});
</script>
</body>
</html>
